package cn.xuqiudong.rpc.spring.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;
import cn.xuqiudong.rpc.spring.provider.XqdSpringProviderBeanProcessor;

import java.lang.annotation.*;

/**
 * 描述: 在标注为spring的bean的同时，会被处理，追加的注册中心
 * @see XqdSpringProviderBeanProcessor#postProcessAfterInitialization(Object, String)
 * @author Vic.xu
 * @date 2022-02-24 16:54
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Component
public @interface XqdService {
    @AliasFor(annotation = Component.class)
    String value() default "";
}
